<?php 
$resultCount = count($this->result);
if ($resultCount) {
    foreach ($this->result as $key => $estate) {?>
    <div title="Estate" id="1" class="estate">
    <div style="float: right;" >
        <span >I want to:</span><br/>
                <a style="float: right;"  href="#" >Buy</a><br/>
                <a style="float: right;"  href="#" >Know more</a>
    </div>
	<fieldset class="ui-widget-content  ui-corner-all" style="padding: 1em; margin: 0.5em" name="estate_<?php echo $estate['estate_id'];?>">
				<legend class="ui-widget-header ui-corner-all"><?php echo $estate['type_name'];?></legend>
				
				<h2><?php echo $estate['project_name'];?> (<?php echo $estate['status_id'];?>)</h2>
				<b>Builder </b>: <?php echo $estate['builder'];?><br/><br/>
				<div><?php echo $estate['summary'];?></div><br />
				<b><?php echo $estate['bhk'];?></b> bedroom, <b><?php echo $estate['size'];?></b> <?php echo $estate['size_units'];?> <br/>
				<b>Rate</b>: <?php echo $estate['rate'];?> INR <br />
				<b>Location </b>: <?php echo $estate['location'];?>
				<b>City </b>: <?php echo $estate['city'];?>
				<b>State </b>: <?php echo $estate['state'];?><br/>
			</fieldset>

	</div>
<?php }
} 
?>
